
import { createApp } from 'vue'
import Vuex, { createStore } from 'vuex'
createApp({}).use(Vuex)
const store = createStore({
    state() {
       return{
       items:[]
    }
    },
    mutations:{
        setitems(state,items){
            state.items = items
        }
    },
    actions:{
      SetItems({commit},data){
        commit('setitems',data);
      }
    }
})
export default store